<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Inserir Artista</title>
        <script src="../midia/scripts/mascaras.js"></script>
    </h:head>       
    <h:body>
        <ui:include src="../layout/menu.xhtml" />
        <div id="corpo">
            <f:view>
                <h:form>  
                    <fieldset>
                        <legend>Artista</legend>                          
                        <h:panelGrid columns="2" id="panel">  
                            <h:outputLabel for="nome" value="Nome *" />  
                            <h:inputText id="nome" value="#{artistaBean.artista.nome}">  
                            </h:inputText>  

                            <h:outputLabel for="telefone" value="Telefone *" />  
                            <h:inputText id="telefone" onkeypress="mascara(this, mascaraTelefone)" maxlength="15" value="#{artistaBean.artista.telefone}">  
                            </h:inputText>  
                            
                            <h:commandButton id="btn" value="Inserir" update="panel" actionListener="#{artistaBean.inserir}"/>  
                        </h:panelGrid>             
                    </fieldset>
                </h:form>                  
            </f:view>
        </div>
        <ui:include src="../layout/rodape.xhtml" />
    </h:body>
</html>
